 #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
    int a = 0;
    while (scanf("%d", &a) != EOF)
    {
        for (int i = a; i > 0; i--)
        {
            for (int x = a - i; x > 0; x--)
                printf(" ");
            for (int j = i; j > 0; j--)
                printf("* ");
            printf("\n");
        }
    }
    return 0;
}